Changed name of script and added clearDefaults function
Consolidating Code