I don't understand why you are using `map!` here. The modified array is the return value of `get_next_devices` which isn't being restored anywhere. In fact, it seems like you should not have a block at all and just do a `first` to get the only item in the returned array.