A short while ago I've come across one article which I believe you can find useful. Someone might take a steaming dump all over it, however it answered some of my questions. 
http://tom2010.us/?p=2895