Upgraded hashing from md5 to sha1