Moved due date notification code