Removed debug code.
Added new Debug class.