If types of parameters are the same, may be easier to create a vector (to iterate by indexing) or map (to iterate by names) and iterate over it?