Modify detect() to return a tuple

This probably breaks things. Just get tuple[1] to the processor, please.