Slightly improved localization process.