Added two additional fields: last_cost and avg_cost.