Updating data and dist.