List five functions of a cardiac pacemaker