Update bfn_thresh.lua