Factored out parameter management into class Parameters.