Added support for cookies and proxies