Localization functional