Fixed PIP calculation.