Adding P1 and P2 solutions.