Added getTotal