Yes 10 is arbitrary and prevents endless looping.