Added support for queries, updated version.