Implementing basic REPL.