Horrible implementation of two-pairs?