Power quality is a very important topic nowadays. Sensitive industrial equipment should be protected against steady-state distortions and temporary transients in the distribution lines. Typical disturbances that affect the voltage waveform quality are harmonics, imbalances and sags. This paper presents a solution to protect sensitive loads against voltage disturbances that is based on a series power line conditioner. The goal of the proposed design is that the load does not suffer considerable input voltage variations. To achieve that, a Proportional-Resonant (PR) controller and a reference generator block based on a low-gain PLL are used, which avoids a sag detection block. Furthermore, a frequency adaptation loop is included in the PR controller, which provides a proper controller operation even with utility grid frequency deviations. Finally, a hardware in the loop (HIL) test rig is used to validate the system.