First version of time step control. Not really fully functioning yet.