I think you are right! The first device_id will be used as the output_device.
Also, I think you could just set output_device to the id you want to accumulate your updates on.
Here 14 are the important lines of code.