Next_Logs procedure for paging