Adding support for ordering of pages.