Extension: AGG exporter - extened to work with inheritance