Added proper email sending scheduling.