Add setevent command