Refactored the IDebug interface and added a Logger class.