Fixed a typo. Its name not hostname.
Added the ability to specify a group.