Updating and Optimizing Scripts cleaning out redundant files