Remove unused imports.
Modify loading sequence

Metadata then rnd engine.