Changed hash function to SHA1