Modifications to vSPD code for beneficiaries-pay analysis