Moved the debug info to a seperate class