Improving PID locking.