Added parameters to sql generator.