Adding logging of received events.