Add support for multiple hosts (with retries) and raw queries.