After eight weeks, people who consumed medium and high amounts of cocoa flavanols every day made significant improvements on tests that measured attention, executive function, and memory. The findings were published online in the American Journal of Clinical Nutrition.