Added window creation.