Added support for passing parameters.