With two different merge functions