Recursive getParams