Interrupt-based train control. Optimized version. by: sonny_bonny | Beltworks