Tackling the infinite loop situation