Collect pairwise stats.