Add functionality to combine groups