While loop added