Reduced number of asserts, removed isValidTime function.