Created addEvent()