Moved thresholds outside UI.