Added static DebugPrinter to control debug output.