Implementing onArmRecognized