Update script for cron