Perform all neccessary preprocessing on event data.