Support setting attributes in the Event class