Adding capability to loop through pages to scrape data