If the flag /periodlength is set to a positive integer, the program will instead divide the whole period into sub-periods and for each sub-period sets the max value to the highest value found within the sub-period. Thereby, the maximum capacity can both increase and decrease over time. The /maxlimits concerning changes between two consecutive values will then refer to changes between two consecutive sub-periods instead. The /ignorevalues can be set to 0 or 1, if set to 1 the program will ignore the highest value within each sub-period, thus removing the highest spike within the sub-period.