Use int labels in compute_centers. #4