Make the event system use event classes instead of string identifiers