Refactor cron interval