Change provider params from int to size_t