Added a modified version of uuid.lua from Tieske/uuid