Hysteresis controller complete