The code is the sequence of prying grasp. The failure detection and recovery are included in the code.