Added method to determine file hash