Loop function

Never knew it. It works. Thank you very much.