Zolo wrote one that you might be interested in:

http://www.dual-boxing.com/showthread.php?t=34618