Removed global var.