Added guid function