Add a method to compute tags.