Added support for passing parameters to the format method.