Added parallel indexing and querying