Changed uuid generation function