Merge functions (in progress)