Added the merge method.