Severity of insomnia correlates with cognitive impairment.