As I was researching supplements, I found that calcium is sometimes used to treat insomnia. I forget exactly how it works, but I can tesitfy that it sure has helped me!! I was getting very little sleep, and IBS was kicking hard because of being so exhausted all the time...but calcium did the trick! I will look into splitting mine up after I finish my new bottle...maybe magnesium early and calcium at bedtime..