Added Pf and Pi in the constructor