Updated md5 function again