Add schemas code, second attempt.

I don't mind