@GabrielaNa1, looking at your sample code, one thing stands out to me about your 'where' condition. Is it possible that event1 could be the only event firing? You're accounting for instances where it's the first, middle, or last event in a list, but not where it's the only event. Could that be part ...