Updated to work when used as cron script, added some messages