Studies have found a link between low levels of magnesium, an essential mineral that plays a crucial role in a wide range of bodily processes, and sleep disorders, according to the New York Times.

But if you are concerned you aren’t getting enough magnesium, changing your diet may be a better option than taking a supplement, as “there is really sparse evidence that taking super-therapeutic doses of magnesium will give you a benefit,” said Dr. Raj Dasgupta, a professor of pulmonary and sleep medicine at the University of Southern California.

The mineral is widely available in both plant and animal-based foods, and the kidneys limit urinary excretion of magnesium, so deficiencies are rare in healthy people.