Implment p5 and p6.