Removed glabal var.