Added local to local detection for merging