Added paging by following a nice example I reference from the copied code within the script file.