Code used for localization demo