Small changes for totals.
Added totals and critical resources.