I would link directly to the code, but then even fewer people would RTFA.
Anyway, happy hacking!
Link to Original Source
And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones