Refactored when config is read to allow control of whether the REPL initiates