Added support for cron