Tally optimizing