Added more methods to deal with parameters

But some unit test fail because of the order of the parameters.