Reference pairing script