Update config automatically