Removed use of initialized global variable