Cron job implementation.