Modified how uid's are generated.