Hah, forget that. I just wrote the entire thing, including configuration, and it works great. I'll send full patches to the mailing list shortly.