Added support for events in TimeBlock rendering.