Updating and Optimizing Scripts