Add a hook for the keyring module