The document describes a proposed control scheme for a dynamic voltage restorer (DVR) to improve performance under various load conditions. The control scheme uses least error squares filters to estimate voltage magnitudes and phases, enabling accurate sag detection and compensation. It controls each phase independently using proportional-integral controllers in an outer loop and proportional controllers in an inner loop to damp filter resonances. Simulation results show the DVR can restore voltages within 5 milliseconds under both linear and non-linear loads for faults like single line-to-ground and line-to-line.