A train was driving on the railway in black smoke as the bell rang.