Updating metrics.