Add handling for possible total_sum and balance_sum list values