A surgical instrument is disclosed. The surgical instrument includes an electric motor and a control circuit. The control circuit includes a plurality of logic gates and a monostable multivibrator. The monostable multivibrator is connected to a first one of the logic gates. The control circuit is configured to alter a rate of action of a function of the surgical instrument by controlling a speed of rotation of the electric motor based on a sensed parameter.