Switch to @cron decorator