Starting rough draft to merge function