Removed unused error var.