Update to buy.sell function