Fix thresholding length
More specificity in table/db