Added group key to creating subgroups.