Updated script to check MD5