Add two-pairs function.