Researchers have demonstrated that specific groups of neurons, known as neuronal ensembles, have a causal role in behavior. The researchers used new optical and analytical tools to identify cortical ensembles in mice while they performed a visual task. They also used high-resolution optogenetics to simultaneously target selected neurons with single-cell precision, taking control of the mice's behavior.