Modified send_events to support sending multiple events