Event-based exporting working properly