Updates the config