Modified cron function (added $override)