#20 Merge function implemented.