An implanted defibrillator can promptly detect and treat abnormal rhythms (arrhythmias) and prevent sudden death.