Added an addParameter() method to FunctionTrait.