Use while instead for