Add a merging pattern