Trying to deal with possible infinite loop
Trying to deal with possible infinite loop