Added primitive localization capability