Generates the PCFG