Merge function included.