I don't know if there's still interest in implementing this. If so, I've fixed a little error in the patch.