An ICD can be programmed to deliver several types of therapies.  They can act as a standard pacemaker, deliver high-energy shocks, and deliver rapid pacemaker-like therapy to break up fast heart rhythms.