Certainly not pretty (or necessarily correct), but it's something.