Added getTotal.