I know this script. Does not help because it deals with one pair. The question was about multiple pairs.