Fixing the gathering and application of parameters.

The order was incorrect and I was eliminating duplicates. Neither of which was desirable.