Change loop to `update_all`