Update statistics.