Added code to set follow redirect parameters