Should return `total_consumed`