Added in DebugManager and changed some of the debug logs to use it