After get pair, can output the results to files