Adding a method for connecting hosts to hostgroups