Added more methods to the window class.