Made sure it sets the changed variable back to false at each iteration