Added check for uniqueness of group name.