Use enum for event identification.