A program to deal with those goddamn trains.