How about a PR on top of this to add such a scheme? Trying to design a general scheme makes my head hurt.