This study examines how treatment with the drug modafinil, by itself or in combination with cognitive behavioral treatment for insomnia (CBT-I), may improve daytime functioning and/or diminish the severity of insomnia.