Added nonce generator. (#5)