Use "Setting nevents" to extract number of events for MG and add protection for multiple such printouts