Fixed errors when events that have the same times are passed in, and simplified >2 event handling