Added date comparison