The body of a train moved slowly along the track, and a locomotive flared in the opposite direction.