Server loop added