Implemented the GUID function