Change the creation of the AgentSpawned event (issue #35).