Improved savewindow.