Changed scheduler_daemon to Whenever for task scheduling