Adding threshold