added param to set threshold of best_Windoq