Added the getWindowSize() function.