Adding more stiffness functions and matrix updates.