Better creation of windows.