Add schemas code

Combine with top and ||?