Implementing date check for motion.
Adding debug.