Created CreateEventArray method