Updated version, time control routines.