modifed analyzeReceivedEvents to return results through one channel so we can build a common csv file.