Refactored kconsole implementation