Added option to pass cookies, that will be used when retrieving the page.