Slight improvements to joint limit locking and unlocking.