Added support for raw queries.