Changed hardness to a linear relationship rather than a clamping one.