Inject user agent to avoid multiple initializations.