Experimental refactoring for console output