Update config every iteration