Improved performances of second_window.