Refactoring sha1, now using the more newest file to calculate hash.