Added to Purchase.cs for data extraction code.