Add functionality for saving Pairs