Adjusted threshold for quality of windows