Fixed a fatal issue and added window resizing.