Contact merging