Dispatching events to entities