A library I worked on years ago. Probably not relevant or the best way to do so any more, but thought I'd put the code somewhere.