A clone of UUID4R with some fixes