Using AgentSender class for handling messages to the Agent from the Worker