graph TD A[Receive Data from Subagent 2] --> B[Data Preparation & Sorting] B --> C[Validate Data Structure] C --> D{Data Valid?} D -->|No| E[Return Error to Main Agent] D -->|Yes| F[Sort by Company Age] F --> G[Filter Out Large Companies] G --> H[CSV Compilation] H --> I[Format Records into CSV Lines] I --> J[Create Column Headers] J --> K[Populate Data Rows] K --> L[Email List Extraction] L --> M[Collect All Email Addresses] M --> N[Format Email List] N --> O[Combine Outputs] O --> P[Add Mission Complete Message] P --> Q[Return Final Output] subgraph Input Processing A --> B --> C end subgraph Data Transformation F --> G --> H end subgraph Output Generation I --> J --> K --> L end