Added a decision maker class to decide between issuing a query or examining a snippet