Conversion of Local ID to Global ID

Added code to automatically generate Global ID from a hash of the local
ID.