Disclosed is a method for improving cognitive function or for improving coordination of function across a patients cortical regions. The method includes applying electrical stimulation to at least a portion of the patients subcortical structures involved in the generation and control of generalized efference copy signals. Internally generated movement of the patient is then detected and, in response to such internally generated movement, application of electrical stimulation is controlled.