Working prototype. Now adding more queries.