Added nonce and guid functions