Removes debug lines and moves initializer code out of the config update