Updated update script for cron