Share util functions
Implement hash_lens