Refactored Debugger.