Creating the Orchestrator function