Worked on getting querying functionality working.