Refactoring console implementation