Added groupWithMultipleM