Thanks again, Justin! inserted() is just what I was looking for.
Can you expand on not using document rooted selectors within a module? The whys, and what one should do instead?