Add helper function to generate uuid.