Added while() with b--