URscrip Program Feedback

Hi guys!
I have this Script running as a glue dispenser over a outsole shoes.
Running in both CB and ESeries.
Would like to get any feedback abou the way that is was done, and how i can make it in a better way.
Thanks!