Added threshold to settings file