script now fetches 5 pages of results