Removed unused global variable.
More global variables moved to globals infrastructure.