Change windowing algorithm