Added totals to end, but currently very BROKEN.