Added a merge mode