Moved global variable to globals infrastructure.