Change blockedPairs to handle the keys of the records