Removed unneeded global var.