Added xbox to existing hacked-up code.  None of this is pretty.