Added most of the code about UUID's