Updates to pcc algorithm