Added option to calculate file hashes.