The motor cortex is located on both sides of the brain and contains three regions: the primary motor cortex which controls movements, the premotor cortex which prepares movements, and the supplementary motor area which aids in motor planning. An experiment on monkeys showed that different neurons in the motor cortex reacted at different stages of a button pressing task: some fired after the first light cue, some after the second light, and one important neuron fired from the first light through the movement. Malfunctions in the motor cortex can cause muscle twitching, weakness, and even paralysis.