Added md5 hashing function