Implement level hashes calculation.