Finish the logic of Pairwise