Updated the detection of interacting pairs