Added ability to resize window.