The ICD continuously monitors the heart's electrical activity. If it detects a dangerous arrhythmia, such as ventricular tachycardia or ventricular fibrillation, it delivers a shock to reset the heart's rhythm. Some ICDs also have pacemaker functions to manage slower heart rates. The device stores data that can be reviewed by healthcare providers during follow-up visits.