There's no actual need for code duplication, I'll just simplify the debug output decisions.