Modify getEventData to accept header line