Add option to output all pairs.