Converted to PID control