Added event printing util function