@nixCraft A while loop, that is intended to terminate, must move the state in a direction such that the exit condition is eventually satisfied. Not sure this is happening here.