Added more complex host group generation