Finished framework for querying LSI.