Add cron and update functions