Adding possibility to set max events != -1 for cmssw configs.