Also the number of periods for tuning is specified as a command line
argument.