Added Schema Compilation function