Add first version of function getGlobalIdentifier