Added error checking on events times.