Modification of getProducts parameters.
Code refactor.