PID with locking works