Added localization code