Added by-reference flag to debug code, but the last commit causes the game to crash before we get there #339