Latest script for pairing