added back the soft depth mechanism.