Hysteresis modified to accept zero or None thresholds, and raise an exception for negative thresholds.