Replaced class variables in config for thread safe