Totally rebuilt app with better REPL design pattern.