Format the data when passing events through