Closed loop amplifier