Introduced option for the first and last event to process