Added in tally functionality