Add schemas code

Sorting twice?