Added support for page sizes larger than 4K