How Can I Stop GI Distress?

All the time we hear runners worrying about what their stomach is doing when they should be focusing on performance, cyclists having to jump into a bush, swimmers literally violating the guy behind! How can you avoid gastrointestinal distress when doing your triathlon, your cycling, your running and really get the most out of your performance nutrition?