Added ability to follow redirects.