Updated to work with new XNA runtime