-Add merge function