A train was running smoothly on the track, its headlights flashing and the train beeping.