Added function for localization