A group of neurons located in the basal ganglia appears to play a vital role in cognitive flexibility.