The prefrontal cortex initiates long-term planning or cognitive aspects of movements, determines whether an action is suitable for the given situation, and weighs consequences of motor actions, thereby updating how future motor actions will affect the outcome in a similar or different situation.