Updates to cron.php, small bugfixes