Implement chunk hashes. Closes #1