Better organized looping over all params, and handling of command line c.