It may seem like your body’s not doing much while you sleep, but it’s actually rather busy doing a wide variety of things. Those include replaying the day and making memories stick, keeping you from hurting yourself or others, and regulating your body temperature. Notably, it can also play some tricks like causing people to eat and even text while they slumber.