Scripts for controlling stock