Script that will actuallly do the paging