To reduce code duplication, why not call ENGINE_SET_EVENT here?