Incase you're wondering, I've pretty much abandoned this. You can find this as an addon with lots of extra features.
http://www.hawkee.com/view.php?file_id=1714