Add support for parameters in sampling and aggregation methods