Merging Function Complete