WIP EventGenerator.cs to be merged