Added cron support to main class.