Smarter uuid generator.