Added main classes for export. Needs compatibility fixes for export.