Control of joint stiffness