Producing the clustered groups