Adds basic querying