Iterate what? If, as your title suggests, you mean Wait with a timeout of one second, then that works fine, but you'll want to check to make sure your msg isn't invalid.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)