Changed how the page list is generated.