Finished implementing theStack script gen