Implement hashing option in stat
Cleanups.