Implemented the spin stiffness measurement