Merge functionality