I've had trouble sleeping for nearly 6 years now. I have had this lingering suspicion that maybe my sleep issues might have something to do with digestion but only recently confirmed it by keeping a sleep log. Every day I couldn't sleep, I ended up having a bowel movement within 2 hours. I guess there's some kind of nerve in the intestines that tells the body to wake up when it nears the exit.
I tried eating more fiber but it kind of exacerbated the problem because it increases the frequency of bowel movements, making it more likely that I'll wake up before I've had enough sleep. (Unless I'm doing it wrong? I eat a big bowl of lentils in the morning)
What can I do to make sure that my bowel movements are well into the afternoon and not during the nighttime or morning?