added MIN_PERIOD and MAX_PERIOD to config file