As some suggested, take the preventative route. What's worked for me-- Wheat is a source of gas, so go gluten-free for a couple of days, along with no mushrooms, chick peas (or hummus), soy, carbonated drinks, and take probiotics. Hopefully, you won't get those pains. Good luck!