Moved updating PID