Updated debug console.
Cleaned up server code.