Added a script for querying