Added latest version of repl code