Extract out pin tapping and toggling