Partial implementation of readAllPages