Added printEventArray