What we believe to be a new and simple approach was developed for stabilizing a harmonic mode-locked fiber laser at 40 GHz. It uses a computer to tune the modulation frequency in a 100 kHz band near 40 GHz to follow variations in the length of the optical cavity. A second approach was also developed to compare with the new approach and to draw conclusions on its performance. Results for the pulse characteristics, side-mode suppression ratio, and timing jitter show that both approaches provide an efficient way of stabilizing a harmonic FM mode-locked fiber laser.