Implement support for script, and show how to loop