Added overrideHost option in proper place.