Add checks to ensure sha1 hash