Use while iter syntax