Added support for chained proxies