Added a feature to override "host" at runtime.