Clean unused code and debug output.