A pacemaker can help the heart beat more regularly, usually when it is beating too slowly.