Many countries have regulated it as an illegal drug, even though it can be used in medicine. It can be used as an anesthetic, and a sedative. In the past it has been used to treat insomnia and depression. It can also help people who have a problem with alcoholism or cataplexy. In patients with narcolepsy it has been used to treat sleepiness during the day. Athletes have used it to make their performance better.