Added getting of host if the origin is not yet available.