Implement REPL.