Fixed bug.
Preliminary implementation for REPL plugin.