Changed to generate from Phenotype root, commented out the version that generates from the root HP.