Resolved global variables, which were used only locally.
Global variables moved to the globals infrastructure.
Global variables moved to the globals infrastructure.