Added p7pp function.