STUI 1.4.1b6

Minor cleanups to loop command script.