Added logging of all events