Added print function for event