Add merge functions.