Altered script to read in a list of pairs that we are interested in