Support thresholding api output