Code tidy on CRON job