Refactered global variables.