Added basic totaling