Implemented group generation