Improvements to pair_add section.