Added a mechanism for basing speeds on time; updated the train accordingly