Device/device: Use unsigned for iterating