Working on a merge function.