Allow agent to be set through options