I'm not quite sure how that would work.  Do you want to take a stab at that in an alternate PR after this one is merged?