Simplify repl thread