Insomnia can be short-term or long-term. Prevention of the sleep disorder may include maintaining a consistent sleeping schedule, such as waking up and sleeping at the same times every day. Also, one should avoid caffeinated drinks during the 8 hours before sleeping time. While exercise is essential and can aid the process of sleeping, it is important to not exercise right before bedtime, therefore creating a calm environment. Lastly, one's bed should only be for sleep and sex. These are some of the points included in sleep hygiene. Going to sleep and waking up at the same time every day can create a steady pattern, which may help against insomnia.