Moved PrintPairs into class to avoid function collisions.