Controller with PID