Added script for queriying and page ranging.