Moved summary calculations out of the iterator in drawTierNodes