I think it tripped up both myself and @antoviaque that the code breaks out after the first reuse_distance entries rather than limiting the range in the for statement itself. Maybe for readability for future devs that also will be looking at the code it would be best to do it that way.