Added "sql" parameter.