This study tests a new kind of sleep study in which subjects are awakened 2 times after initially going to sleep. The study focuses on the EEG signal process as a person goes to sleep. The general hypothesis is that the signal properties are stable from night to night during baseline studies, and are different between controls and patients with primary insomnia. The primary insomnia patients then go on to have about 2 weeks of an insomnia intervention. Then the new kind of study is repeated in the patients. The controls only are examined in baseline studies.