Working on making viewport functional. It no longer crashes the screen but I may be using it incorrectly.