Add check at this line for when hubs are being discovered:
Add check at this line for when passthrough is selected:
The final else should indicate that nothing was found, print out any relevant information (such as the ID that was read), and then exit cleanly.