Added regroup to merge