Rename addEvent to addState