Added threshold behaviour to settings file