This is the merge stage