Change the data format to event arrays