Add pagination to locator.