Added merging of alternate nodes