Added support for list queries.