Vectorize part of the agent creation