Added udid getter and local id generator based on udid