Fixed cron.
Got rid of some depr. warnings.