Use with settings instead of env.hosts.