Removed unnecessary global variable call.