Added HostPreference, following network-conduit's approach