Pushing events to array
Working on code to prune events and get next events