Added onChat event.