Moved some global variables to globals infrastructure.
Moved some global variables to globals infrastructure.
Moved some global variables to globals infrastructure.
Moved some global variables to globals infrastructure.
Moved some global variables to globals infrastructure.