Controller for the cron jobs