Cure for insomnia found