Make changes to return events as an array instead of dictionary