Changed Hosts gen to use inventory