You need to do this before the data event.