Using hostgroup instead of hostgroups variable.