Moved the initialization of the repl.