Changed Iterator to make Thread Safe