Added support for overriding endpoint - required for EU region