Added some stuff for cron