Update #23: update pagination script