Adding ErrorCheckInt, added AddPurchase