Cleanup on the files to change intance variable to local in the script section