Removed while loop in update method device.s.u.