Merge functions