Calculate average prices, capture container info while rebuilding.