Added support for more than one event at the same sample time