Add timeofday routine