Improved sound loop example script