Initial creation of agent