Added the ability to resize the window.