Refactor reading pages
Fetch pages to a tmp location first