Adapted old analysis to use hash tables.