Researchers combine gene therapy with optogenetics to curb abnormal neural activity and prevent seizure-like activity in neurons.