OP, Paul Butzi has a detailed and quite complex article on the subject, the link to which I found many years ago on APUG but I can't recall the URL. If you want to get into the subject, do a google or maybe search APUG.

Just be prepared to read it several times to get an understanding.

pentaxuser