Updating Md5 to use less try-catches