A computer inside the AED analyzes the victims heart rhythm. The device determines whether a shock is needed. Some devices shock the victim automatically if a shock is needed. Other devices require that the operator press a button to deliver the shock. The shock is delivered through pads applied to the victims bare chest. The shock stuns the heart, stopping abnormal heart activity and allowing a normal heart rhythm to resume.