Regroup gems.