Implemented localization functionality