Add schemas code, second attempt.

This could probaby fit on one line.