Add createEventObject