Take into account the selected page.