Remove debug output.
Refactoring output methods.