Fixed cron command and improved logging.