Added fixes from scrolling and window resizing. Window resizing still
crashes. Need branches for experimental fixes.