Make the current parameter a global, named tGlobal, update code accordingly.
We still need to do a lot of refactoring of the code.