Cleaned up some engine stuff to make more clear, still breaking when rendering squirrel