Added EventWriter and its functionality.