You're very welcome, Algiedi.
Heh... it did take me a while to write, yes. But it was a useful exercise - I kept finding myself writing bits of it over and over again in response to various questions in other threads, and now I've got it all together in one post that I can either copy and paste, or point to, in response to similar questions in future. Sheer laziness really.