Avoid visiting the same location twice.