Update Hysteresis

Some changes to control hysteresis