Add overrideHosts method