Refactored how the query interface works.
Version bump.