Finished merge functions.