Modified to accept our own values for setpoint/ref.