A motorized surgical instrument is disclosed. The surgical instrument includes a control circuit configured to control the movement of an end effector. If the end effector moves outside a predetermined desired position, the control circuit may activate the energized condition of the motor to move the end effector back to the desired position. When the end effector is in the desired position, the control circuit may engage the de-energized condition of the motor and engage an electromagnetic lock.