Slight refactoring of myManageHook.