A surgical fastener apparatus having a handle, an elongated shaft having a proximal end attached to the handle and a distal end extending therefrom. An end effector including a pair of jaws pivoted at a proximal end thereof and movable between an open and closed position. A cartridge containing a plurality of surgical fasteners, the cartridge attached to the end effector. An electrically powered actuator for deploying the surgical fasteners, the actuator including a power source and a motor. Means for electrically adjusting the amount of spacing between the jaws when the end effector is in the closed position.