Cleaned up code, removed outdated output debugger.