Allow agent to be set