Added ability to use an internally-specified globalId instead of always creating it from the identity.