Code for the NASA cuff project