Improved getParams