Added option to curl to follow redirects