Added field for threshold when adding an item.