Add option to pass number of events to process