Added fetchPairs() method