Added all functionality for stim pairing