Update code and config thread