Optimized window size and mult