Added function arrEvent.