Remove unused code from cron