Finishing up the parameters set abstraction.
Moving parameter logic into its own file.