UPDATED UPDATE SCRIPT