Handling of localization