Update loop added