Added support for parameters to queries.