Add schemas code, second attempt.

I'll add a note about this to the code.