Refactored CandidateEvents to an enum type rather than an unsafe int