Added method to import legacy classes and categories