Yup, I agree. It is tricky. I couldn't RTFM so I RTFC.

I don't think that I could describe the mechanism succinctly (alarm bells already ringing in my head) and I'm slightly loathed to do so here. We may just need to live with the logic and a bit of reliance on so grunt work by the reader.

Depends how passionate you feel about it ...