Closed-loop control system