Using data from almost 400,000 people, the National Cancer Institute recently published a study showing a strong link between a high-fiber diet and longer life.

The study used information from people aged 50 to 71 and found that those who ate a diet rich in fresh produce and whole grains were likely to live longer. The study defined a high-fiber diet as having 29 grams of fiber daily for men and 26 grams for women.

While the news didn’t surprise Produce for Better Health Foundation president Elizabeth Pivonka, she said the study provides new and convincing evidence that healthy people have healthy eating habits.

“We always knew fiber was good, this study helps quantify just how good,” Pivonka said. “There really is no getting around the fact that a diet rich in fruits, vegetables, whole grains and lean meats, as identified yet again in the recent Dietary Guidelines, is the diet for optimal health.”

In addition to confirming that high-fiber diets are linked to longer life, the study also revealed that fiber also has anti-inflammatory properties, which can help reduce aches and pains.