Now reads in pages and stores their data.