Add Merge function.