use a product function of stability and difference bewtween currecnt depth and previous depth. Apply starting at depth equals previous. Moderate the effect by using 3rd root.