Adding console wrappers and refactoring Repl to use