Added group generator method.