Loop function

Aaah, you are right. Thanks alot!