Revised analysis code for SPP test.