Added console print out for total