Simplify REPL code -- create results variable inside REPL()