Neuronal Circuits Underlying Flexible Behaviour