I am presently following the Specific Carbohydrate. Diet under the guidance of a nutritionist. It limits or forbids the use of dairy, gluten, all grains and complex carbs (those that remain longer in the intestines, are harder to digest, and bad bacteria tend to feed on or ferment). It is a fairly restrictive diet, similar to GAPS. There is also the low FODMAP diet which is less restrictive and allows for rice, yams and potatoes. I was purchasing gluten free products without realizing they are made with rice and potato flour. Therefore I would do a little better, then eat half of a gluten free muffin and end up with diarrhea. It was not until I eliminated all complex carbs and grains (which was only two weeks ago) that I started to improve. My stools are now gradually more solid and I only go once or twice a day. There is a book readily available on Amazon called Breaking The VIcious Cycle. Costs $20.00 for paperback version and it is not hard to read. Diet is restrictive and the only carbs you are allowed are those coming from fruit. There are also lots of You Tube videos you can watch for free.