Moving paging to server side.