Made package global modes load in hook.