Changed default 'data' event to 'record' event.