Update formula to match md5