This is the code I have =)

Gotta do some Plugin API tomorrow probably... or Friday, we'll see...