Added Merge function