Added more debug logging to events.