I had been having trouble getting to and staying asleep for over a year. I tried melatonin, meditation, magnesium, castor oil, etc... Nothing really seemed to work consistently. For other health reasons, I started upping my intake of calcium, magnesium, and potassium. After this change to my diet, I noticed my sleep improved dramatically. I try to get 1,200 mg of calcium through my diet each day, but if I fall short, once in a while I will take one 500 mg chocolate supplement. Every night before I go to bed I take a half of a magnesium supplement with a glass of watermelon water (for potassium). This combination of minerals knocks me out. I still get up to go to the bathroom in the middle of the night, but when I get back in bed I fall right back to sleep. I also wake up feeling refreshed. I never would've thought that a nutritional deficiency could cause insomnia.