Added window resizing.