Using event.data instead of message