Possible solution for thread safe repl.