Added support for XNA 3.1