Modify device to take a binary struct.