Overhauled UUID generation