Add SCHEMA_DIR to global variables. Modify model loader.