Before radios railroads depended on oil lamps.  This train displayed green flags and lights to show that it was a single train moving forward.