Set window_start/end better