Adds threshold settings from dialog box.