Add date comparison to the module