Removed unnecessary global variable.