Added localization function