Added ability to fetch events and convert into an ERP array