Add code and checks for mean CPT calculation.