Removed merge function