Added CPP generation for dynamic chunks.