Modify the following sentence to remove grammar issues.
With the help of pacemaker, patients whose heart rate is too high or too low can maintain an adequate heart rate.
With the help of a pacemaker, patients whose heart rate is too high or too low can maintain an adequate heart rate.