Added GUID and fixed some random number problems.