Made "Plot Cycles" an optional input

Time intensive calculation
Changed local min definition
Added run options