Purchasing scrips in S framework