Functional. Fixed XNA errors