Simple change to allow using non-AWS endpoints.