Added a merge method.