Adding localization hook