Rewrite pager related things.