Genetically modified plants having increased tolerance to heat stress are described. Methods of producing such genetically modified plants are also disclosed. The genetically modified plants comprise exogenous nucleic acid encoding a thermostable protein having starch synthase activity. Genetically modified plants have increased yield when grown under elevated conditions as compared to control plants.