Model importer code rewritten.