Use HookMetaclass in the alert system