CPP generation