Simple version with device localization failure handling.