Add comments about hysteresis algorithm.