Added ability to generate hashes.