Adapt regulator as function of its output