Get params

I just replaced several lines of code with one (likely more robust) built-in function.  It doesn't affect the outcome, but it cleans the codebase up a little.