Optimise power quality for critical applications