Change to getParams for more flexibility