Added support for methods with more than one parameter.