Update page range logic.