Support for auto-detecting page size and compression; Small refactors of page data reading