Changed paramscan such that it works with multiple PARAMS.