Removed superfluous global variable