Some xna reference code.