Added support for associating hosts and groups.