Modified the model to allow material parameters to depend on stress.