Take salt before bed, it stops the cortisol your body produces in response to not getting enough sodium. I do 1/4 tsp and just swish in my mouth with water right before bed. Keep the magnesium too. But there are some nights where salt is the ONLY thing that helps.