added AddParam function.