removed specification of filename and number of events, do this in a script instead