Added i_thresh as config param.