Add merge functionality.