Wouldn't it be better to put the event types into a dedicated enum to provider better type-safety?