Added date and time checking.