make hysteresis threshold more strict. Also: First attempt to make an interpolated hysteresis.