Implemented the cardate callback.