Added queryInfo class, and started on the helper functions.