Merging nodes working