Replaced the GlobalVars script with a function which now creates an object with all the current running params