Added the loop feature to the script syntax.